<?php
	include('session_ini.php');
	
	if($_GET["seccion"] == "logout"){
		include("view/logout.php");
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>ScrumOrg</title>
		<meta name="robots" content="index, follow" />
		<link rel="shortcut icon" href="<?php echo URL_BASE(); ?>/view/images/favicon.ico" />
		<link href="<?php echo URL_BASE(); ?>/view/css/reset.css" rel="stylesheet" type="text/css" />
		<link type="text/css" href="<?php echo URL_BASE(); ?>/view/css/estilo.css" rel="stylesheet" />
		<link type="text/css" href="<?php echo URL_BASE(); ?>/view/js/fancybox/jquery.fancybox.css" rel="stylesheet" />
		<link type="text/css" href="<?php echo URL_BASE(); ?>/view/css/jquery.autosuggest.css" rel="stylesheet" />
		<link type="text/css" href="<?php echo URL_BASE(); ?>/view/css/jquery.Jcrop.css" rel="stylesheet" />
		<link type="text/css" href="<?php echo URL_BASE(); ?>/view/js/jquery.alerts/jquery.alerts.css" rel="stylesheet" />
		<link type="text/css" href="<?php echo URL_BASE(); ?>/view/css/ui-darkness/jquery.ui.css" rel="stylesheet" />
		<link type="text/css" href="<?php echo URL_BASE(); ?>/view/css/uploadify.css" rel="stylesheet" />
		<link type="text/css" href="<?php echo URL_BASE(); ?>/view/css/flexcrollstyles.css" rel="stylesheet" />
		<link href="<?php echo URL_BASE(); ?>/view/css/estilo.ie.css" rel="stylesheet" type="text/css" />
		
		<script type="text/javascript"> 
			var url_base = "<?php echo URL_BASE(); ?>";
			var idProyecto = "<?php echo $_SESSION["idProyecto"]; ?>";
			var id_usuario = "<?php echo $_SESSION["id_usuario"]; ?>";
		</script>
		<script type="text/javascript" src="<?php echo URL_BASE(); ?>/view/js/jquery.js"></script>
		<script type="text/javascript" src="<?php echo URL_BASE(); ?>/view/js/jquery.ui.js"></script>
		<script type="text/javascript" src="<?php echo URL_BASE(); ?>/view/js/jquery.autosuggest.js"></script>
		<script type="text/javascript" src="<?php echo URL_BASE(); ?>/view/js/jquery.validate.js"></script>
		<script type="text/javascript" src="<?php echo URL_BASE(); ?>/view/js/jquery.Jcrop.js"></script>
		<script type="text/javascript" src="<?php echo URL_BASE(); ?>/view/js/jquery.alerts/jquery.alerts.js"></script>
		<script type="text/javascript" src="<?php echo URL_BASE(); ?>/view/js/fancybox/jquery.fancybox.js"></script>
		<script type="text/javascript" src="<?php echo URL_BASE(); ?>/view/js/uploadify/jquery.uploadify.js"></script>
		<script type="text/javascript" src="<?php echo URL_BASE(); ?>/view/js/swfobject.js"></script>
		<script type="text/javascript" src="<?php echo URL_BASE(); ?>/view/js/flexcroll.js"></script>
		<script type="text/javascript" src="<?php echo URL_BASE(); ?>/view/js/init.js"></script>
		<script type="text/javascript" src="<?php echo URL_BASE(); ?>/view/js/misTareas.js"></script>
		<script type="text/javascript" src="<?php echo URL_BASE(); ?>/view/js/backlog.js"></script>
		<script type="text/javascript" src="<?php echo URL_BASE(); ?>/view/js/usuarios.js"></script>
		<script type="text/javascript" src="<?php echo URL_BASE(); ?>/view/js/accionesMensajeria.js"></script>
		<script type="text/javascript" src="<?php echo URL_BASE(); ?>/view/js/ajaxfileupload.js"></script>
		<script type="text/javascript" src="<?php echo URL_BASE(); ?>/view/js/cartelera.js"></script>
		<script type="text/javascript" src="<?php echo URL_BASE(); ?>/view/js/archivos.js"></script>
		<!--[If IE]>
		<style type="text/css" rel="stylesheet">
			* html img{ behavior: url('<?php echo URL_BASE(); ?>/view/js/iepngfix/iepngfix.htc') }
			* html div{ behavior: url('<?php echo URL_BASE(); ?>/view/js/iepngfix/iepngfix.htc') }
		</style>
		<![endif]-->
	</head>
	<body class="floatFix">
		<div id="container<?php if(!isset($_SESSION['id_usuario']) || $_SESSION['id_usuario'] == null){ echo "-login"; } ?>">
			<?php 
				if(!isset($_SESSION['id_usuario']) || $_SESSION['id_usuario'] == null){
					if($_GET["seccion"] == "registro"){
						include("view/registro.php");
					}else{
						include("view/login.php");
					}
				}else{
					include("view/header.php");
			?>
				<div id="central">
			<?php 
					if($_SESSION["idProyecto"] != 0){
						include("view/menu.php");
					}
					
			?>
					<div id="content">
			<?php
					if(!isset($_GET["seccion"])){
						include("view/principal.php");
					}else{
						include("view/".$_GET["seccion"].".php"); 
					}
			?>
					</div>
			
			<?php
					include("view/components/actualizaciones.php");
				}
			?>
				</div>
			<p class="floatFix"></p>
			<br clear="all" /><br />
		</div>
		<div id="footer" class="floatFix">
			<p>2010 &copy; ScrumOrg. Todos los derechos reservados. </p>
		</div>
	</body>
</html> 